﻿namespace SpreadSheetFramework.Util.Validate
{
    public class ObjValidateInt32:ObjValidateBase
    {
        public ObjValidateInt32(string errStr) : base(errStr)
        {
        }

        public override bool IsValidate(object value)
        {
            int cv;
            if (value==null||!int.TryParse(value.ToString(), out cv))
                return false;
            return true;
        }
    }
}